home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 701-725 / 708 / intuisup / intuisup42.lha / Intuisup / source.lha / Gadgets / imports.h < prev    next >
C/C++ Source or Header  |  1992-04-01  |  5KB  |  119 lines

  1. /* $Revision Header *** Header built automatically - do not edit! ***********
  2.  *
  3.  *    (C) Copyright 1991 by Torsten Jürgeleit
  4.  *
  5.  *    Name .....: imports.h
  6.  *    Created ..: Thursday 19-Dec-91 20:53:10
  7.  *    Revision .: 0
  8.  *
  9.  *    Date        Author                 Comment
  10.  *    =========   ====================   ====================
  11.  *    19-Dec-91   Torsten Jürgeleit      Created this file!
  12.  *
  13.  ****************************************************************************
  14.  *
  15.  *    Imports, prototypes and pragmas for gadget functions
  16.  *
  17.  * $Revision Header ********************************************************/
  18.  
  19.     /* Imports */
  20.  
  21. IMPORT BYTE  hotkey_id[];    /* gadgets1.c */
  22. IMPORT ULONG dec_table[];    /* texts/texts.c */
  23.  
  24.     /* Static prototypes - gadgets1.c */
  25.  
  26. struct IntuiMessage    *perform_gadget_action(struct ExtendedGadget  *egad,
  27.                        struct IntuiMessage  *real_imsg);
  28. struct IntuiMessage    *perform_hotkey_action(struct ExtendedGadget  *egad,
  29.                        struct IntuiMessage  *real_imsg);
  30. struct IntuiMessage    *create_intui_message(struct IntuiMessage  *real_imsg,
  31.              struct GadgetList  *gl,USHORT data_entry, ULONG value);
  32. struct ExtendedGadget  *get_active_gadget(struct Window  *win);
  33. struct ExtendedGadget  *get_hotkey_gadget(struct Window  *win,
  34.                                 USHORT hotkey);
  35. struct GadgetList      *get_first_gadget_list(struct Window  *win);
  36.  
  37.     /* Static pragmas - gadgets1.c */
  38.  
  39. #pragma regcall(perform_gadget_action(a0,a1))
  40. #pragma regcall(perform_hotkey_action(a0,a1))
  41. #pragma regcall(create_intui_message(a0,a1,d0,d1))
  42. #pragma regcall(get_active_gadget(a0))
  43. #pragma regcall(get_hotkey_gadget(a0,d0))
  44. #pragma regcall(get_first_gadget_list(a0))
  45.  
  46.     /* Static prototypes - gadgets2.c */
  47.  
  48. USHORT count_gadget_data_entries(struct GadgetData  *gd);
  49. ULONG  get_gadget_buffer_size(struct GadgetList  *gl, struct GadgetData  *gd);
  50. ULONG  get_image_buffer_size(struct GadgetList  *gl, struct GadgetData  *gd);
  51. VOID   init_gadgets(struct GadgetList  *gl, struct GadgetData  *gd,
  52.                           SHORT hoffset, SHORT voffset);
  53. BYTE   *init_extended_gadget(struct ExtendedGadget  *egad, BYTE *buffer,
  54.       struct GadgetList  *gl, struct GadgetData  *gd, USHORT data_entry,
  55.            USHORT type, USHORT left_edge, USHORT top_edge, USHORT width,
  56.                                  USHORT height);
  57. BYTE   *init_gadget_border(BYTE *buffer, struct RenderInfo  *ri,
  58.                  struct ExtendedGadget  *egad, ULONG flags);
  59. VOID   init_gadget_text(struct ExtendedGadget  *egad, BYTE *text,
  60.                    USHORT width, USHORT height, ULONG flags,
  61.                            struct TextAttr  *text_attr);
  62. BYTE   *init_mx_text(struct ExtendedGadget  *egad, BYTE *buffer, BYTE *text,
  63.                    USHORT width, USHORT height, ULONG flags,
  64.                            struct TextAttr  *text_attr);
  65. BOOL   check_gadget_image(struct Image  *image);
  66. BYTE   *init_gadget_image(struct ExtendedGadget  *egad,
  67.                       struct GadgetData  *gd, BYTE *buffer);
  68. BYTE   *init_image_data(struct ExtendedGadget  *image, BYTE *buffer);
  69.  
  70.     /* Static pragmas - gadgets2.c */
  71.  
  72. #pragma regcall(count_gadget_data_entries(a0))
  73. #pragma regcall(get_gadget_buffer_size(a0,a1))
  74. #pragma regcall(get_image_buffer_size(a0,a1))
  75. #pragma regcall(init_gadgets(a0,a1,d0,d1))
  76. #pragma regcall(init_extended_gadget(a0,a1,a2,a3,d0,d1,d2,d3,d4,d5))
  77. #pragma regcall(init_gadget_border(a0,a1,a2,d0))
  78. #pragma regcall(init_gadget_text(a0,a1,d0,d1,d2,a2))
  79. #pragma regcall(init_mx_text(a0,a1,a2,d0,d1,d2,a3))
  80. #pragma regcall(check_gadget_image(a0))
  81. #pragma regcall(init_gadget_image(a0,a1,a2))
  82. #pragma regcall(init_image_data(a0,a1))
  83.  
  84.     /* Static prototypes - gadgets3.c */
  85.  
  86. VOID   refresh_gadget(struct ExtendedGadget  *egad);
  87. VOID   change_gadget(struct ExtendedGadget  *egad);
  88. BOOL   change_cycle_gadget(struct ExtendedGadget  *egad, ULONG qualifier);
  89. LONG   pop_up_cycle_list(struct ExtendedGadget  *egad);
  90. struct RastPort  *create_rast_port(USHORT width, USHORT height, USHORT depth);
  91. VOID   free_rast_port(struct RastPort  *rp, USHORT width, USHORT height);
  92. VOID   change_count_gadget(struct ExtendedGadget  *egad);
  93. VOID   timer_delay(ULONG seconds, ULONG micros);
  94. VOID   print_gadget_text(struct ExtendedGadget  *egad);
  95. VOID   print_cycle_text(struct ExtendedGadget  *egad);
  96. VOID   print_count_text(struct ExtendedGadget  *egad);
  97. VOID   print_list_view_text(struct ExtendedGadget  *egad);
  98. USHORT calc_prop_body(ULONG max_num, ULONG size);
  99. USHORT calc_prop_pot(ULONG max_num, ULONG size, ULONG num);
  100. ULONG  get_prop_pos(ULONG max_num, ULONG size, USHORT pot_value);
  101.  
  102.     /* Static pragmas - gadgets3.c */
  103.  
  104. #pragma regcall(refresh_gadget(a0))
  105. #pragma regcall(change_gadget(a0))
  106. #pragma regcall(change_cycle_gadget(a0,d0))
  107. #pragma regcall(pop_up_cycle_list(a0))
  108. #pragma regcall(create_rast_port(d0,d1,d2))
  109. #pragma regcall(free_rast_port(a0,d0,d1))
  110. #pragma regcall(change_count_gadget(a0))
  111. #pragma regcall(timer_delay(d0,d1))
  112. #pragma regcall(print_gadget_text(a0))
  113. #pragma regcall(print_cycle_text(a0))
  114. #pragma regcall(print_count_text(a0))
  115. #pragma regcall(print_list_view_text(a0))
  116. #pragma regcall(calc_prop_body(d0,d1))
  117. #pragma regcall(calc_prop_pot(d0,d1,d2))
  118. #pragma regcall(get_prop_pos(d0,d1,d2))
  119.